<html>
	<head>
		<script type="text/javascript" src="jquery.js"></script>
		
		<script type="text/javascript">
			$(function(){
				$("#input").click( 
					function(){
						var mydata = {'x':10,'y':20,'date':1504171222942};
						$.ajax({
								type : 'POST',
						        contentType : 'application/json',
						        url : 'http://localhost:8080/test/user',
						        data : JSON.stringify(mydata),
						        dataType : 'json',
						        processData : false,
						        success : function(result) {
						        	$("#result").text("");
						        	if(result.status==0){
							            $("#result").append(JSON.stringify(result)+"<br/>");
						        	}else{
						        		alert(result.message);
						        	}
				
						        },
						        error : function() {
						            alert('Error...');
						        }
					
					});
				})
			})
		</script>
	</head>
	
	
	<body>
		<div id="div">
		<input type="button" value="�ύ" id="input" class="input"/>
		</div>
	</body>
	
</html>